﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>宜春取证机</title>
    <link href="../libs/layer_mobile/need/layer.css" type="text/css" rel="stylesheet"/>
    <link href="../css/main.css?v=20200911" rel="stylesheet" type="text/css"/>
</head>
<body id="cabinet-group">
<div class="container">
    <div class="top-head">
       	 柜组
        <button type="button" class="logout" id="logout">注销</button>
        <button type="button" class="refresh" id="refresh">刷新</button>
    </div>
    <ul class="cabinet-group" id="group-tmpl"></ul>
</div>

<script id="tmpl" type="text/html">
    {{if objs.length == 0}}
    <div class="empty">无数据</div>
    {{else}}
    {{each objs as obj i}}
    <li class="group-item" data-id="{{obj.id}}">
        <h6>{{obj.name}}</h6>
        <ul class="cabinet-list">
            {{each obj.boxStatusVOs as item j}}
            <li>
                <div class="box {{if item.status==0}}exist{{else if item.status==1}}free{{else}}abnormal{{/if}}"></div>
                <div class="count">{{item.statusName}}：<span>{{item.count}}</span></div>
            </li>
            {{/each}}
        </ul>
    </li>
    {{/each}}
    {{/if}}
</script>

<script src="../libs/seajs/sea.js"></script>
<script src="../libs/seajs-css/seajs-css.js"></script>
<script src="../libs/seajs-preload/seajs-preload.js"></script>
<script src="../config.js"></script>
<script src="../libs/common/rem.js"></script>
<script src="../libs/jquery/jquery.js"></script>
<script>
    seajs.use("../js/cabinet-group.js")
</script>
</body>
</html>